Define INITGUID only for mingw.org compiler
authorHib Eris <hib@hiberis.nl>
Mon, 13 May 2013 13:45:18 +0000 (15:45 +0200)
committerHib Eris <hib@hiberis.nl>
Sun, 2 Jun 2013 08:42:26 +0000 (10:42 +0200)
Defining INITGUID causes a build failure with mingw-w64 > r5589.

https://bugzilla.gnome.org/show_bug.cgi?id=699673

gdk/win32/gdkdnd-win32.c

index 35ab20461fc04a1c7096ea8c11eb6504153a128c..6b350592a957f1e2e5e4b6533000f9a30a7a6a53 100644 (file)
  *
  */
  
+/* The mingw.org compiler does not export GUIDS in it's import library. To work
+ * around that, define INITGUID to have the GUIDS declared. */
+#if defined(__MINGW32__) && !defined(__MINGW64_VERSION_MAJOR)
 #define INITGUID
+#endif
 
 #include "gdkdnd.h"
 #include "gdkproperty.h"